<me:UIWBFK x:Class="WPFExcelReport.TWB18"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT"  
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"  
                    xmlns:ChartEx="clr-namespace:WPFExcelReport.Chart;assembly=ITXVIEWS" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                   x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIWBFK.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:SDKEYCONV x:Key="sd"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <DataTemplate x:Key="listBoxTemplate">
            <StackPanel Margin="3">
                <DockPanel >
                    <TextBlock FontWeight="Bold" Text="{Binding Source={Localization:Translate Word=版本:}}"   DockPanel.Dock="Left"   Margin="5,0,10,0"/>
                    <TextBlock Text="{Binding WBFKVERSION}" Foreground="Green" FontWeight="Bold" />
                </DockPanel>
                <DockPanel >
                    <TextBlock FontWeight="Bold" Text="{Binding Source={Localization:Translate Word=主疵点:}}" Foreground ="DarkOrange"  
                          DockPanel.Dock="Left" 
                          Margin="5,0,5,0"/>
                    <TextBlock Text="{Binding WBFKDFFSCHL,Converter={StaticResource sd},ConverterParameter=0267}" />
                </DockPanel>
            </StackPanel>
        </DataTemplate>
    </me:UIWBFK.Resources>
    <WrapPanel Visibility="Collapsed">
        <Button Content="{Binding Source={Localization:Translate Word=增加质检:}}"  Margin="20,0,0,20" VerticalAlignment="Center" Click="NewCommand" FontSize="18"/>
        <Button Content="{Binding ERVER,ElementName=TV}" Height="40"  Margin="20,0,0,20" Width="40" Click="NewCommand" FontSize="18" VerticalAlignment="Center"/>

        <ListBox  ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}" 
                  ItemTemplate="{StaticResource listBoxTemplate}"  >
            <ListBox.Template>
                <ControlTemplate TargetType="{x:Type ListBox}">
                    <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
                        <WrapPanel Orientation="Horizontal" IsItemsHost="True" ScrollViewer.CanContentScroll="True"/>
                    </ScrollViewer>
                </ControlTemplate>
            </ListBox.Template>
        </ListBox>
    </WrapPanel>
</me:UIWBFK>
